#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int n = 0;
	scanf("%d", & n);
	while (n--)
	{
		int count = 0;
		int m = 0;
		scanf("%d", &m);
		for (int i = 1; i <= m; i++)
		{
			int k = m % i;
			if (k == 0)
			{
				count++;
			}
		}
		printf("%d\n", count);
	}


	return 0;
}